package cn.software.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

/**
 * 班级表(一个班对应一个科目)
 * @TableName class
 */
@TableName(value ="class")
public class Class implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 班级总人数
     */
    private Integer sum;

    /**
     * 
     */
    private Integer isDeleted;

    /**
     * 班级名称
     */
    private String name;

    /**
     * 班级老师的id
     */
    private Integer teacherId;

    /**
     * 班级对应科目的id
     */
    private Integer subjectId;

    @TableField("`describe`")
    private String describe;

    private String invCode;

    public Class(Integer id, Integer sum, Integer isDeleted, String name, Integer teacherId, Integer subjectId, String describe, String invCode) {
        this.id = id;
        this.sum = sum;
        this.isDeleted = isDeleted;
        this.name = name;
        this.teacherId = teacherId;
        this.subjectId = subjectId;
        this.describe = describe;
        this.invCode = invCode;
    }

    public String getInvCode() {
        return invCode;
    }

    public void setInvCode(String invCode) {
        this.invCode = invCode;
    }

    public Class() {
    }

    public String getDescribe() {
        return describe;
    }

    public void setDescribe(String describe) {
        this.describe = describe;
    }

    public Class(Integer id, Integer sum, Integer isDeleted, String name, Integer teacherId, Integer subjectId, String describe) {
        this.id = id;
        this.sum = sum;
        this.isDeleted = isDeleted;
        this.name = name;
        this.teacherId = teacherId;
        this.subjectId = subjectId;
        this.describe = describe;
    }

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 
     */
    public Integer getId() {
        return id;
    }

    /**
     * 
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 班级总人数
     */
    public Integer getSum() {
        return sum;
    }

    /**
     * 班级总人数
     */
    public void setSum(Integer sum) {
        this.sum = sum;
    }

    /**
     * 
     */
    public Integer getIsDeleted() {
        return isDeleted;
    }

    /**
     * 
     */
    public void setIsDeleted(Integer isDeleted) {
        this.isDeleted = isDeleted;
    }

    /**
     * 班级名称
     */
    public String getName() {
        return name;
    }

    /**
     * 班级名称
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 班级老师的id
     */
    public Integer getTeacherId() {
        return teacherId;
    }

    /**
     * 班级老师的id
     */
    public void setTeacherId(Integer teacherId) {
        this.teacherId = teacherId;
    }

    /**
     * 班级对应科目的id
     */
    public Integer getSubjectId() {
        return subjectId;
    }

    /**
     * 班级对应科目的id
     */
    public void setSubjectId(Integer subjectId) {
        this.subjectId = subjectId;
    }


}